forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit70d7e50
committed
Fix translation of special characters in psql's LaTeX output modes.
latex_escaped_print() mistranslated \ and failed to provide any translationfor # ^ and ~, all of which would typically lead to LaTeX document syntaxerrors. In addition it didn't translate < > and |, which would typicallyrender 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 charactersas ASCII text. But that's been fixed for, um, decades. In any case thereis no value in emitting guaranteed-to-fail output for these characters.Noted while fooling with test cases added by commit9a98984. Back-patchthe code change to all supported versions.1 parent95dcb8f commit70d7e50
3 files changed
+98
-74
lines changedLines changed: 30 additions & 6 deletions
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
Comments
(0)