summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/strc-ref.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-02-22 20:15:08 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-02-22 20:15:08 +0100
commit95bf6b95a9d47a16219a26e19004d22c52180587 (patch)
tree6ebaa61735c34a613528ff2c53916f374babe5b0 /tex/context/base/mkiv/strc-ref.lua
parent93dce457ab8769ef45a56b2e0f7ad447d7a47a83 (diff)
downloadcontext-95bf6b95a9d47a16219a26e19004d22c52180587.tar.gz
2016-02-22 19:57:00
Diffstat (limited to 'tex/context/base/mkiv/strc-ref.lua')
-rw-r--r--tex/context/base/mkiv/strc-ref.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/tex/context/base/mkiv/strc-ref.lua b/tex/context/base/mkiv/strc-ref.lua
index 2d6f3837b..358b97744 100644
--- a/tex/context/base/mkiv/strc-ref.lua
+++ b/tex/context/base/mkiv/strc-ref.lua
@@ -1937,12 +1937,10 @@ local function setinternalreference(specification)
-- ugly .. later we decide to ignore it when we have a real one
-- but for testing we might want to see them all
- if innermethod == v_page then
- -- we dont' want too many #1 #2 #3 etc
- if internal then
- tn = tn + 1
- t[tn] = internal -- when number it's internal
- end
+ if internal and innermethod ~= v_name then
+ -- we dont' want too many #1 #2 #3 etc
+ tn = tn + 1
+ t[tn] = internal -- when number it's internal
end
destination = references.mark(t,nil,nil,specification.view) -- returns an attribute
end