Changeset 24 in code for trunk


Ignore:
Timestamp:
Nov 6, 2022, 12:48:40 PM (2 years ago)
Author:
fox
Message:

Fix non-empty authors in HTML conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/html.ml

    r21 r24  
    5959                then "<dt>" ^ key ^ "<dd>" ^ value else "" in
    6060(*      let author acc auth = sep_append acc Person.(auth.name ^ " ") in*)
    61         let authors = (Person.Set.to_string text.authors ^ " ") in
     61        let authors = Person.Set.to_string text.authors in
    6262        let keywords = str_set "keywords" text in
    6363        let header =
     
    7272                ^ opt_kv "Title:" text.title
    7373                ^ opt_kv "Authors:" authors
    74                 ^ opt_kv "Date: " (time (Date.listing text.date))
    75                 ^ opt_kv "Series: " (str_set "series" text)
    76                 ^ opt_kv "Topics: " (topic_links (set "topics" text))
    77                 ^ opt_kv "Keywords: " keywords
    78                 ^ opt_kv "Id: " text.id
     74                ^ opt_kv "Date:" (time (Date.listing text.date))
     75                ^ opt_kv "Series:" (str_set "series" text)
     76                ^ opt_kv "Topics:" (topic_links (set "topics" text))
     77                ^ opt_kv "Keywords:" keywords
     78                ^ opt_kv "Id:" text.id
    7979                ^ {|</dl></header><pre style="white-space:pre-wrap">|} in
    8080        wrap conversion htm text.title ((T.of_string text.body header) ^ "</pre></article>")
Note: See TracChangeset for help on using the changeset viewer.