
Multi-line match of \emph{}
Reported by stef | October 21st, 2010 @ 06:21 AM
rc2tex.rb just returns the output of to_latex()
> ./rc2tex.rb "try
> - THIS\_SHOULD
> - NOT\_BREAK
> - RED\_CLOTH4"
try
--THIS\textbackslash{}\emph{SHOULD
--NOT\textbackslash{}\_BREAK
--RED\textbackslash{}}CLOTH4
The output has 2 problems:
First, the leading ' - ' are converted to '--' for some reason.
Second, there is a greedy match on the underscores, converting
to an \emph{}. My understanding was that the underscore func is
inline - ie not multiline. In my app this breaks the pdf generation
(xelatex) since I
subsequently change line endings to produce a table row for each
line of output ...
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
RedCloth is a Ruby library for converting Textile into HTML