Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

grantm (164)

  (email not shown publicly)

Just a simple [] guy, hacking Perl for fun and profit since way back in the last millenium. You may find me hanging around in the monestary [].

What am I working on right now? Probably the Sprog project [].

GnuPG key Fingerprint:
6CA8 2022 5006 70E9 2D66
AE3F 1AF1 A20A 4CC0 0851

Journal of grantm (164)

Wednesday February 15, 2006
10:52 PM

Mason + Tex fun

[ #28696 ]

A number of our reports are produced in PDF format using pdflatex. We used to do it using docbook but the Java toolchain for converting to PDF was too slow and consumed more memory than we had available (our server 'only' has 4GB of memory). We used to generate the docbook XML files using HTML::Mason so when we switched to using LaTeX we continued to use Mason to generate the .tex files.

I'm not a TeX guy but apparently \\ is TeX for newline. Unfortunately if it's at the end of the line, Mason trims the last slash and the newline character, leaving us with \whatever_was_at_the_start_of_the_next_line.

Apparently the 'fix' that was used when the problem was encountered was to use \\\ at the end of the lines.

This week we upgraded some servers from debian woody to sarge (the 'new' stable release) and in doing so went from Mason 1.05 to 1.26. Apparently, this brought a subtle change in the handling of multiple slashes at the end of a line.

I've now replaced all occurrences of \\\ with \newline and now everything's happy again.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.