DescriptionFix composition of markup lists containing markup command list calls
Composed markup lists in the parser apply normal markup commands to
markup lists, like
\with-color #red { a b c }
If those markup lists contained calls to markup list commands (like
\column-lines), the resulting behavior was undefined, at worst
producing segfaults (cf issue 2393). This patch series cleans up the
inconsistencies. It contains the following commits:
Allow unbraced forms of composed markup lists
Since composing markup lists may now work at run time, there is no
particular need for the associated syntactic restrictions.
Allow markup lists to be composed at run-time
Using a markup command on a markup list generated by a markup list
command was not previously possible. Now things like
\with-color #red { \column-lines { x y z } }
work as well.
Move map-markup-command-list into parser internals
Simplify interpret-markup-list
Use fold in map-markup-command-list
Text_interface::is_markup should reject markup-list-command calls
Patch Set 1 #Patch Set 2 : Combine successive composed markup list commands #
Total comments: 1
Patch Set 3 : Address Ian's comment. Hopefully. #Patch Set 4 : Some comments, make robust about throw not actually happening #
MessagesTotal messages: 8
|