pinboard-elinks

Check-in [fc0e0c9425]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:It wasn't an off by one error, think was rounding error instead *think*. Still don't know for sure. Perhaps was a different in Lua versions after all.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256: fc0e0c942561931c430af90387409f6459cdc61413a865f13eda4687b21cfbdc
User & Date: atomicules@lavabit.com 2013-06-21 08:56:18
Context
2014-03-07
10:12
Minor change - keybinding for read later Realised it was conflicting with redrawing the elinks window. check-in: ce00796b89 user: base@atomicules.co.uk tags: master, trunk
2014-02-11
11:50
Add license check-in: 31c581828a user: atomicules@users.noreply.github.com tags: master, trunk
2013-06-21
08:56
It wasn't an off by one error, think was rounding error instead *think*. Still don't know for sure. Perhaps was a different in Lua versions after all. check-in: fc0e0c9425 user: atomicules@lavabit.com tags: master, trunk
2013-05-27
14:51
Change keybindings in README. Related to commit: 496ab7012455fdbf88e5129613d69c0289591c36 check-in: 4cdaa96f7d user: atomicules@lavabit.com tags: master, trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to pinboard.lua.

    99     99   
   100    100   --The following taken from the contrib hooks.lua sample
   101    101   function hx (c)
   102    102       return string.char((c >= 10 and (c - 10) + string.byte ('A')) or c + string.byte ('0'))
   103    103   end
   104    104   
   105    105   function char2hex (c)
   106         -    return '%'..hx ((string.byte (c) / 16)-1)..hx (math.mod(string.byte (c), 16))
          106  +    return '%'..hx (math.floor(string.byte (c) / 16))..hx (math.mod(string.byte (c), 16))
   107    107   end
   108    108   
   109    109   function escape (str)
   110    110       return string.gsub (str, "(%W)", char2hex)
   111    111   end
   112    112   --end stealing