Skip to content

Commit

Permalink
Prevent error if input to org-hugo--quote-string is an empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalmodi committed Sep 22, 2017
1 parent 8a433e9 commit ba9e836
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ox-hugo.el
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,9 @@ string with just alphanumeric characters."
(cond
((or (null val) ;nil
(not (stringp val)) ;could be a number, like menu weight
(and (string= (substring val 0 1) "\"") ;First char is literally a "
(and (stringp val)
(> (safe-length val) 0)
(string= (substring val 0 1) "\"") ;First char is literally a "
(string= (substring val -1) "\"")) ;Last char is literally a "
(string= "true" val)
(string= "false" val)
Expand Down

0 comments on commit ba9e836

Please sign in to comment.