History

Do not show empty info entries

malc committed 5 years ago

Commit 74d897e1 parent df933ee1 file · +4 −5Browse files

Unified · Split

main.ml+4−5
@@ -1382,10 +1382,11 @@ let act cmds = · 1381 unmodified lines
13821382 match splitatchar args '\t' with
13831383 | "Title", "" ->
13841384 settitle @@ Filename.basename state.path;
1385− "No Title"
1385+ E.s
13861386 | "Title", v ->
13871387 settitle v;
13881388 args
1389+ | _, "" -> E.s
13891390 | c, v ->
13901391 if let len = String.length c in
13911392 len > 6 && ((String.sub c (len-4) 4) = "date")
@@ -1410,11 +1411,9 @@ let act cmds = · 18 unmodified lines
14101411 Buffer.contents b
14111412 else args
14121413 )
1413− else (
1414− if nonemptystr v then args else c
1415− )
1414+ else args
14161415 in
1417− state.docinfo <- (1, s) :: state.docinfo
1416+ if nonemptystr s then state.docinfo <- (1, s) :: state.docinfo
14181417
14191418 | "infoend", "" ->
14201419 state.docinfo <- List.rev state.docinfo;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t