summaryrefslogtreecommitdiff
path: root/smu.c
diff options
context:
space:
mode:
Diffstat (limited to 'smu.c')
-rw-r--r--smu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/smu.c b/smu.c
index da9b652..01ef239 100644
--- a/smu.c
+++ b/smu.c
@@ -506,6 +506,14 @@ dosurround(const char *begin, const char *end, int newblock) {
if(!stop || stop < start || stop >= end)
continue;
fputs(surround[i].before, stdout);
+
+ /* Single space at start and end are ignored */
+ if (*start == ' ' && *(stop - 1) == ' ') {
+ start++;
+ stop--;
+ l++;
+ }
+
if(surround[i].process)
process(start, stop, 0);
else