* mandoc: prevent line breaks in the middle of .OP
@ 2018-08-18 13:05 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2018-08-18 13:05 UTC (permalink / raw)
To: source
Log Message:
-----------
prevent line breaks in the middle of .OP
Modified Files:
--------------
mandoc:
man_term.c
Revision Data
-------------
Index: man_term.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/man_term.c,v
retrieving revision 1.215
retrieving revision 1.216
diff -Lman_term.c -Lman_term.c -u -p -r1.215 -r1.216
--- man_term.c
+++ man_term.c
@@ -346,7 +346,7 @@ pre_OP(DECL_ARGS)
{
term_word(p, "[");
- p->flags |= TERMP_NOSPACE;
+ p->flags |= TERMP_KEEP | TERMP_NOSPACE;
if (NULL != (n = n->child)) {
term_fontrepl(p, TERMFONT_BOLD);
@@ -358,6 +358,7 @@ pre_OP(DECL_ARGS)
}
term_fontrepl(p, TERMFONT_NONE);
+ p->flags &= ~TERMP_KEEP;
p->flags |= TERMP_NOSPACE;
term_word(p, "]");
return 0;
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-18 13:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-18 13:05 mandoc: prevent line breaks in the middle of .OP schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).