Skip to content

Commit 0976260

Browse files
guhetierAndreasBilke
authored andcommitted
Add a line break between slide notes in .pdfpc file
It ensures the next note start mark is in a new line and ease manual edition of notes in .pdfpc file
1 parent 305c777 commit 0976260

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/classes/metadata/slides_notes.vala

+4
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ namespace pdfpc {
122122
var note_text = notes[i].note_text;
123123
var escaped_text = escape_regex.replace(note_text, note_text.length, 0, "\\\\\\0");
124124
builder.append(escaped_text);
125+
// ensure there is a line break before the next comment start mark
126+
if (!escaped_text.has_suffix("\n")) {
127+
builder.append("\n");
128+
}
125129
}
126130
}
127131
} catch (RegexError e) {

0 commit comments

Comments
 (0)