diff options
Diffstat (limited to 'tex/context/base/lang-url.lua')
-rw-r--r-- | tex/context/base/lang-url.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tex/context/base/lang-url.lua b/tex/context/base/lang-url.lua index 3b354216a..09a4e5d90 100644 --- a/tex/context/base/lang-url.lua +++ b/tex/context/base/lang-url.lua @@ -9,7 +9,7 @@ if not modules then modules = { } end modules ['lang-url'] = { local utf = unicode.utf8 local utfcharacters, utfvalues = string.utfcharacters, string.utfvalues -local utfbyte, utfchar = utf.byte, utf.char +local utfbyte, utfchar, utfgsub = utf.byte, utf.char, utf.gsub context = context @@ -63,7 +63,7 @@ local characters = utilities.storage.allocate { } local mapping = utilities.storage.allocate { - -- [utfchar(0xA0)] = "~", -- nbsp (catch) +--~ [utfchar(0xA0)] = "~", -- nbsp (catch) } hyphenatedurl.characters = characters @@ -72,8 +72,7 @@ hyphenatedurl.lefthyphenmin = 2 hyphenatedurl.righthyphenmin = 3 hyphenatedurl.discretionary = nil --- more fun is to write nodes .. maybe it's nicer to do this --- in an attribute handler anyway +-- more fun is to write nodes local function action(hyphenatedurl,str,left,right,disc) local n = 0 |