[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5745] trunk
- Subject: SF.net SVN: ledger-smb:[5745] trunk
- From: ..hidden..
- Date: Sat, 4 May 2013 05:01:17 +0000
Revision: 5745
http://sourceforge.net/p/ledger-smb/code/5745
Author: einhverfr
Date: 2013-05-04 05:01:15 +0000 (Sat, 04 May 2013)
Log Message:
-----------
Fixing extra end of line-related crashes in tex template processing
Modified Paths:
--------------
trunk/Changelog
trunk/LedgerSMB/Template/LaTeX.pm
Modified: trunk/Changelog
===================================================================
--- trunk/Changelog 2013-05-03 14:59:37 UTC (rev 5744)
+++ trunk/Changelog 2013-05-04 05:01:15 UTC (rev 5745)
@@ -88,6 +88,7 @@
* Fixed multiple repeat entries in chart of accounts drop down (Nick P, 812)
* Fixed transaction list empty if searched by creditor name (Nick P, 806)
* Fixed cash transfer enforces ticked 'FX' boxes (Nick P, 802)
+* Fixed extra newline-related errors in tex template engine (Chris T)
Nick P is Nick Prater
Modified: trunk/LedgerSMB/Template/LaTeX.pm
===================================================================
--- trunk/LedgerSMB/Template/LaTeX.pm 2013-05-03 14:59:37 UTC (rev 5744)
+++ trunk/LedgerSMB/Template/LaTeX.pm 2013-05-04 05:01:15 UTC (rev 5745)
@@ -129,7 +129,8 @@
$vars =~ s/[ââ]/---/g;
$vars =~ s/"(.*)"/``$1''/gs;
$vars =~ s/\n/\\\\/gm;
- $vars =~ s/\\\\\\\\/\n\n/g;
+ $vars =~ s/(\\)*$//g;
+ $vars =~ s/(\\\\){2,}/\n\n/g;
}
return $vars;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.