static uint8_t bold_forced; /* Force text bold */
static uint8_t indent;
static uint8_t listindent; /* List indenting */
-uint16_t olist_count;
+static uint16_t olist_count;
+static uint8_t suppressnl; /* Next newline shouldn't happen */
static uint8_t tcols; /* Table columns */
static uint8_t trow; /* Table row count */
static void newline(void)
{
wordflush();
- if (xpos)
+ if (xpos && !suppressnl)
force_newline();
+ suppressnl = 0;
}
/* FIXME: Replace these with termcap handlers */
t = NULL;
if (p[1])
p++;
+ else {
+ /* End of line is \ - supress a newline */
+ suppressnl = 1;
+ break;
+ }
}
/* We've found markdown */