diff options
-rw-r--r-- | COPYING | 2 | ||||
-rw-r--r-- | README.rst | 5 | ||||
-rw-r--r-- | mod/tex/context/third/rst/rst_directives.lua | 13 |
3 files changed, 12 insertions, 8 deletions
@@ -1,4 +1,4 @@ -Copyright 2010-2011 Philipp Gesang. All rights reserved. +Copyright 2010-2012 Philipp Gesang. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -4,8 +4,8 @@ General Advice Read the section *Features Not Implemented* in the manual first. -*Note*: if you happen to read this on BitBucket, the error messages some lines -below just mean that *their* implementation doesn’t understand TeX directives. +*Note*: if you happen to read this on BitBucket_, the error messages some lines +below just mean that *their* implementation doesn’t understand |TeX| directives. Don’t worry, |rstcontext| does. ============ @@ -61,6 +61,7 @@ Contact ``com`` (find me on BitBucket_). .. |rstcontext| ctx:: {{\em rst}\kern.5pt\CONTEXT} +.. |TeX| ctx:: {\TEX} .. |CONTEXT| ctx:: {\CONTEXT} .. _Contact: megas.kapaneus@gmail.com diff --git a/mod/tex/context/third/rst/rst_directives.lua b/mod/tex/context/third/rst/rst_directives.lua index 96eaf59..8ee0582 100644 --- a/mod/tex/context/third/rst/rst_directives.lua +++ b/mod/tex/context/third/rst/rst_directives.lua @@ -4,7 +4,7 @@ -- USAGE: called by rst_parser.lua -- DESCRIPTION: Complement to the reStructuredText parser -- AUTHOR: Philipp Gesang (Phg), <megas.kapaneus@gmail.com> --- CHANGED: 2011-08-28 13:47:00+0200 +-- CHANGED: 2012-06-05 21:18:54+0200 -------------------------------------------------------------------------------- -- @@ -226,13 +226,16 @@ rst_directives.mp = function(name, data) return mpcode end +--- There’s an issue with buffers leaving trailing spaces due to their +--- implementation. +--- http://archive.contextgarden.net/message/20111108.175913.1d994624.en.html rst_directives.ctx = function(name, data) local ctx = fmt([[ -\startbuffer[%s] +\startbuffer[%s]%% %s\stopbuffer \def\RSTsubstitution%s{%% - \getbuffer[%s]%% + \getbuffer[%s]\removeunwantedspaces%% } ]], name, data, name, name) return ctx @@ -241,13 +244,13 @@ end rst_directives.lua = function(name, data) local luacode = fmt([[ -\startbuffer[%s] +\startbuffer[%s]%% \startluacode %s \stopluacode \stopbuffer \def\RSTsubstitution%s{%% - \getbuffer[%s]%% + \getbuffer[%s]\removeunwantedspaces%% } ]], name, data, name, name) return luacode |