summaryrefslogtreecommitdiff
path: root/mod/tex
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-09-11 13:43:36 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2011-09-11 13:43:36 +0200
commit74fe70d9c096bb95642603979ab14cc2e00b585d (patch)
tree043286d192985966f70651bee240ece058fead2f /mod/tex
parent6dbdb0d88d1a8c33cac53046369973cd070f7cec (diff)
downloadcontext-rst-74fe70d9c096bb95642603979ab14cc2e00b585d.tar.gz
allow literal blocks after single-line paragraphs
Diffstat (limited to 'mod/tex')
-rw-r--r--mod/tex/context/third/rst/rst_parser.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/tex/context/third/rst/rst_parser.lua b/mod/tex/context/third/rst/rst_parser.lua
index 646d972..43694ce 100644
--- a/mod/tex/context/third/rst/rst_parser.lua
+++ b/mod/tex/context/third/rst/rst_parser.lua
@@ -1103,7 +1103,10 @@ local parser = P{
* V"reset_depth"
,
- par_first = V"par_setindent" * C((1 - V"literal_block_shorthand" - V"eol")^1) * V"eol",
+ par_first = V"par_setindent"
+ * C((1 - V"literal_block_shorthand" - V"eol")^1)
+ * (V"included_literal_block" + V"eol")
+ ,
par_other = V"par_matchindent"
* C((1 - V"literal_block_shorthand" - V"eol")^1)