aboutsummaryrefslogtreecommitdiff
path: root/src/frame.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-11-19 13:40:04 +0100
committerThomas White <taw@physics.org>2017-11-19 13:40:04 +0100
commit314011f46f66bcb2dad6522d8d7352e6eb9963d4 (patch)
tree9e6cdfac3fadc39fc09bdbd34deca7eb9c5b347a /src/frame.c
parent0ecdb80b9c959d995777f206b1a63f44110e4a82 (diff)
pos_trail_to_offset(): Special case for \newpara
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/frame.c b/src/frame.c
index 9ff8d00..626fb00 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -881,6 +881,12 @@ size_t pos_trail_to_offset(Paragraph *para, size_t offs, int trail)
return 0;
}
+ if ( (sc_block_name(run->scblock) != NULL)
+ && (strcmp(sc_block_name(run->scblock), "newpara") == 0) )
+ {
+ return 0;
+ }
+
if ( sc_block_contents(run->scblock) == NULL ) {
fprintf(stderr, "pos_trail_to_offset: No contents "
"(%p name=%s, options=%s)\n",