Skip application of the algorithm that moves words between the lines
to equalize line length for wrap style 1.
return ' ';
}
if (*p == '\\') {
- if ((*(p + 1) == 'N')
- || ((*(p + 1) == 'n')
- && (render_priv->state.wrap_style == 2))) {
+ if ((p[1] == 'N') || ((p[1] == 'n') &&
+ (render_priv->state.wrap_style == 2))) {
p += 2;
*str = p;
return '\n';
- } else if ((*(p + 1) == 'n') || (*(p + 1) == 'h')) {
+ } else if ((p[1] == 'n') || (p[1] == 'h')) {
p += 2;
*str = p;
return ' ';
}
#define DIFF(x,y) (((x) < (y)) ? (y - x) : (x - y))
exit = 0;
- while (!exit) {
+ while (!exit && render_priv->state.wrap_style != 1) {
exit = 1;
w = s3 = text_info->glyphs;
s1 = s2 = 0;