|
@@ -84,7 +84,16 @@ module.exports = function(theme) {
|
84
|
84
|
// draw caption
|
85
|
85
|
context.fillStyle = theme.captionColor;
|
86
|
86
|
lines.forEach(function(line, i){
|
87
|
|
- context.fillText(line.join(" "), x, y + i * (theme.captionLineHeight + theme.captionLineSpacing));
|
|
87
|
+
|
|
88
|
+ // negative indentation for opening quotes
|
|
89
|
+ var indented_x = (x + 28);
|
|
90
|
+
|
|
91
|
+ if (i === 0 && /^“/.test(line[0])) {
|
|
92
|
+ context.fillText(line.join(" "), x, y + i * (theme.captionLineHeight + theme.captionLineSpacing));
|
|
93
|
+ }
|
|
94
|
+ else {
|
|
95
|
+ context.fillText(line.join(" "), indented_x, y + i * (theme.captionLineHeight + theme.captionLineSpacing));
|
|
96
|
+ }
|
88
|
97
|
});
|
89
|
98
|
} // end if caption
|
90
|
99
|
|