~mdw
/
sgt
/
halibut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanups to complete the man page backend. Also, an additional new
[sgt/halibut]
/
input.c
diff --git
a/input.c
b/input.c
index
6cad0f7
..
0535495
100644
(file)
--- a/
input.c
+++ b/
input.c
@@
-569,11
+569,13
@@
static void read_file(paragraph ***ret, input *in, indexdata *idx) {
* Parse code paragraphs separately.
*/
if (t.type == tok_cmd && t.cmd == c_c && !isbrace(in)) {
* Parse code paragraphs separately.
*/
if (t.type == tok_cmd && t.cmd == c_c && !isbrace(in)) {
+ int wtype = word_WeakCode;
+
par.type = para_Code;
par.fpos = t.pos;
while (1) {
dtor(t), t = get_codepar_token(in);
par.type = para_Code;
par.fpos = t.pos;
while (1) {
dtor(t), t = get_codepar_token(in);
- wd.type = w
ord_WeakCod
e;
+ wd.type = w
typ
e;
wd.breaks = FALSE; /* shouldn't need this... */
wd.text = ustrdup(t.text);
wd.alt = NULL;
wd.breaks = FALSE; /* shouldn't need this... */
wd.text = ustrdup(t.text);
wd.alt = NULL;
@@
-588,7
+590,12
@@
static void read_file(paragraph ***ret, input *in, indexdata *idx) {
}
if (t.type == tok_eop || t.type == tok_eof)
break;
}
if (t.type == tok_eop || t.type == tok_eof)
break;
- else if (t.type != tok_cmd || t.cmd != c_c) {
+ else if (t.type == tok_cmd && t.cmd == c_c)
+ wtype = word_WeakCode;
+ else if (t.type == tok_cmd && t.cmd == c_e &&
+ wtype == word_WeakCode)
+ wtype = word_Emph;
+ else {
error(err_brokencodepara, &t.pos);
prev_para_type = par.type;
addpara(par, ret);
error(err_brokencodepara, &t.pos);
prev_para_type = par.type;
addpara(par, ret);