return ret;
}
-#define SECRIT_MULTILINE_CHAR '\x02'
-
#ifdef X11
+#define SECRIT_MULTILINE_CHAR '\x02'
+
static inline int calc_text_width(const char *s, int l)
{
if ((output_methods & TO_X) == 0) {
return barnum;
}
+#ifdef X11
/* substitutes all occurrences of '\n' with SECRIT_MULTILINE_CHAR, which allows
* multiline objects like $exec work with $align[rc] and friends
*/
p++;
}
}
+#endif /* X11 */
static void generate_text_internal(char *p, int p_max_size,
struct text_object root, struct information *cur)
a = outptr - p;
}
#endif /* HAVE_ICONV */
+#ifdef X11
if (obj->type != OBJ_text) {
substitute_newlines(p, a - 2);
}
+#endif /* X11 */
p += a;
p_max_size -= a;
}