if (ANYOF_NONBITMAP(o)) {
SV *lv; /* Set if there is something outside the bit map */
SV * const sw = regclass_swash(prog, o, FALSE, &lv, 0);
+ bool byte_output = FALSE; /* If something in the bitmap has been
+ output */
if (lv && lv != &PL_sv_undef) {
if (sw) {
if (rangestart == -1)
rangestart = i;
} else if (rangestart != -1) {
+ byte_output = TRUE;
if (i <= rangestart + 3)
for (; rangestart < i; rangestart++) {
put_byte(sv, rangestart);
rangestart = -1;
}
}
-
- sv_catpvs(sv, "..."); /* et cetera */
}
{
if (*s == '\n') {
const char * const t = ++s;
+ if (byte_output) {
+ sv_catpvs(sv, " ");
+ }
+
while (*s) {
if (*s == '\n')
*s = ' ';