summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-04-23 17:20:07 +0000
committerSimon Tatham <anakin@pobox.com>2004-04-23 17:20:07 +0000
commit52d5c7f7c4fdc5cbf175bb70c32e88a374045280 (patch)
tree6d114c4837b3a8c8d467a1c75a95c56240cc3774 /input.c
parent5f4b6eee16403e5dbf4571aa7bad06dc19f97597 (diff)
downloadhalibut-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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/input.c b/input.c
index 1187e94..7531d62 100644
--- a/input.c
+++ b/input.c
@@ -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);