瀏覽代碼

ft:代码优化

master
SisMaker 4 年之前
父節點
當前提交
28fb1aaa06
共有 1 個檔案被更改,包括 3 行新增2 行删除
  1. +3
    -2
      src/eFmt.erl

+ 3
- 2
src/eFmt.erl 查看文件

@ -242,9 +242,10 @@ fScan(Format, Args) ->
doCollect(FmtBinStr, Args, Acc) ->
case binary:split(FmtBinStr, <<"~">>) of
[NotMatch] ->
[NotMatch | Acc];
true = [] == Args,
?IIF(NotMatch == <<>>, Acc, [NotMatch | Acc]);
[FPart, LPart] ->
doCollWidth(LPart, Args, 0, right, [FPart | Acc])
doCollWidth(LPart, Args, 0, right, ?IIF(FPart == <<>>, Acc, [FPart | Acc]))
end.
doCollWidth(<<>>, _Args, _Width, _Adjust, Acc) ->

Loading…
取消
儲存