diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-04-23 17:20:07 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-04-23 17:20:07 +0000 |
| commit | 52d5c7f7c4fdc5cbf175bb70c32e88a374045280 (patch) | |
| tree | 6d114c4837b3a8c8d467a1c75a95c56240cc3774 /input.c | |
| parent | 5f4b6eee16403e5dbf4571aa7bad06dc19f97597 (diff) | |
| download | halibut-52d5c7f7c4fdc5cbf175bb70c32e88a374045280.zip halibut-52d5c7f7c4fdc5cbf175bb70c32e88a374045280.tar.gz halibut-52d5c7f7c4fdc5cbf175bb70c32e88a374045280.tar.bz2 halibut-52d5c7f7c4fdc5cbf175bb70c32e88a374045280.tar.xz | |
Enhance the text backend to support configurable quote characters,
configurable emphasis characters, various other configurable bits
which have been marked FIXME in the code for a while, and also to
warn when a code paragraph line is too long (because that was the
only other thing labelled FIXME). Fallback options are implemented,
and defaults set accordingly. A UTF-8 text output file now looks
like proper UTF-8.
[originally from svn r4128]
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -904,11 +904,16 @@ static void read_file(paragraph ***ret, input *in, indexdata *idx) { t.type == tok_word || t.type == tok_white || (t.type == tok_cmd && t.cmd == c__nbsp) || - (t.type == tok_cmd && t.cmd == c__escaped)) { + (t.type == tok_cmd && t.cmd == c__escaped) || + (t.type == tok_cmd && t.cmd == c_u)) { if (t.type == tok_white || (t.type == tok_cmd && t.cmd == c__nbsp)) { rdadd(&rs, ' '); rdaddc(&rsc, ' '); + } else if (t.type == tok_cmd && t.cmd == c_u) { + rdadd(&rs, t.aux); + rdaddc(&rsc, '\\'); + rdaddsc(&rsc, t.origtext); } else { rdadds(&rs, t.text); rdaddsc(&rsc, t.origtext); |