* mdocml: Simplify condition, avoid duplicate code; no functional change.
@ 2013-05-29 16:11 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-05-29 16:11 UTC (permalink / raw)
To: source
Log Message:
-----------
Simplify condition, avoid duplicate code; no functional change.
Modified Files:
--------------
mdocml:
mdoc_term.c
Revision Data
-------------
Index: mdoc_term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v
retrieving revision 1.247
retrieving revision 1.248
diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.247 -r1.248
--- mdoc_term.c
+++ mdoc_term.c
@@ -313,14 +313,10 @@ print_mdoc_node(DECL_ARGS)
*/
if (TERMP_KEEP & p->flags || MDOC_SYNPRETTY & n->flags) {
- if (n->prev && n->prev->line != n->line) {
+ if (n->prev ? (n->prev->line != n->line) :
+ (n->parent && n->parent->line != n->line)) {
p->flags &= ~TERMP_KEEP;
p->flags |= TERMP_PREKEEP;
- } else if (NULL == n->prev) {
- if (n->parent && n->parent->line != n->line) {
- p->flags &= ~TERMP_KEEP;
- p->flags |= TERMP_PREKEEP;
- }
}
}
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-29 16:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 16:11 mdocml: Simplify condition, avoid duplicate code; no functional change 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).