Commit 70d7e50
committed
Fix translation of special characters in psql's LaTeX output modes.
latex_escaped_print() mistranslated \ and failed to provide any translation
for # ^ and ~, all of which would typically lead to LaTeX document syntax
errors. In addition it didn't translate < > and |, which would typically
render as unexpected characters.
To some extent this represents shortcomings in ancient versions of LaTeX,
which if memory serves had no easy way to render these control characters
as ASCII text. But that's been fixed for, um, decades. In any case there
is no value in emitting guaranteed-to-fail output for these characters.
Noted while fooling with test cases added by commit 9a98984. Back-patch
the code change to all supported versions.1 parent 95dcb8f commit 70d7e50
3 files changed
+98
-74
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2301 | 2301 | | |
2302 | 2302 | | |
2303 | 2303 | | |
2304 | | - | |
2305 | | - | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
2306 | 2314 | | |
2307 | 2315 | | |
2308 | 2316 | | |
2309 | 2317 | | |
2310 | | - | |
2311 | | - | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
2312 | 2332 | | |
2313 | 2333 | | |
2314 | 2334 | | |
2315 | 2335 | | |
2316 | 2336 | | |
2317 | 2337 | | |
2318 | 2338 | | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
2319 | 2342 | | |
2320 | 2343 | | |
2321 | 2344 | | |
2322 | | - | |
2323 | | - | |
| 2345 | + | |
| 2346 | + | |
2324 | 2347 | | |
2325 | 2348 | | |
| 2349 | + | |
2326 | 2350 | | |
2327 | 2351 | | |
2328 | 2352 | | |
| |||
0 commit comments