Skip to content

Commit 55a6010

Browse files
committed
fmt and dashes
1 parent 173c04d commit 55a6010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stead/stead3/fmt.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ std.format = function(r, state)
3838
if utf8 then
3939
if fmt.dash then
4040
r = r:gsub("%-%-%-*", { ['--'] = '' })
41-
r = r:gsub("[ \t]+—", iface:nb('')..""); -- do not break dash
4241
r = r:gsub("^([^ \t]*)—[ \t]+", "%1— ");
4342
r = r:gsub("(\n[^ \t]*)—[ \t]+", "%1— ");
43+
r = r:gsub("[ \t]+—", iface:nb('')..""); -- do not break dash
4444
end
4545
if fmt.quotes then
4646
r = r:gsub('_"','«'):gsub('"_',"»");

0 commit comments

Comments
 (0)