                                                                                          [:spacer 0]
                                                                                          (into [:phrase ] (for [b (:badges pb)]
                                                                                                             [:phrase
-                                                                                                             [:anchor {:target (str site-url "/badge/info/" (:id b))} [:chunk.link (:name b)]]"\n"]))
+                                                                                                             [:anchor {:target (str site-url "/badge/info/" (:id b))} [:chunk.link (str (:name b))]]"\n"]))
                                                                                          ]
                                                                                         )
                                                                                       ]

                                                                                                                             [:paragraph
                                                                                                                              (into [:paragraph] (for [c (:congratulations more-badge-info)]
                                                                                                                                                   [:chunk (str c)]))]))])
                                                                                                               [:chunk.chunk (str (capitalize (t :badge/endorsements ul)) ": ")][:chunk (str (:endorsement_count %))]"\n"
                                                                                                               (when (not-empty endorsements)
                                                                                                                 (into [:paragraph {:indent 0}]
                                                                                                                       (for [e endorsements]
                                                                                                                         [:paragraph {:indent 0}
                                                                                                                          #_[:chunk.chunk "Endorser: " ] (:issuer_name e) "\n"
                                                                                                                          #_[:chunk.chunk "Issuer url: "] [:anchor {:target (:issuer_url e) :style{:family :times-roman :color [66 100 162]}} (:issuer_url e)] "\n"
                                                                                                                          #_[:chunk.chunk "Issued on: "][:chunk (date-from-unix-time (long (* 1000 (:issued_on e))))] "\n"
                                                                                                                          (markdown->clj-pdf (:content e))])
                                                                                                                       ))
                                                                                                               [:chunk.chunk (str (t :social/Messages ul) ": ")] [:chunk (str (:all-messages message-count))]"\n"
                                                                                                               (when (> (:all-messages message-count) 0)
                                                                                                                 (into [:paragraph]
                                                                                                                       (for [m messages]
                                                                                                                         [:paragraph
                                                                                                                          [:chunk (:message m)]"\n"
                                                                                                                          [:chunk (str (:first_name m) " " (:last_name m))]"\n"
                                                                                                                          [:chunk (date-from-unix-time (long (* 1000 (:ctime m))) "date")]
                                                                                                                          [:spacer 0]])))
                                                                                                               [:chunk.chunk (str (t :social/Lastmodified ul) ": ")][:chunk (str (date-from-unix-time (long (* 1000 (:mtime b))) "date")"  ")]
                                                                                                               [:chunk.chunk (str (t :badge/URL ul) ": ")] [:chunk.link {:style :italic} (str site-url "/badge/info/" (:id b))]
                                                                                                               [:spacer 1]]])]
                                                                           ]

                                                                                                               (when-not (blank? (:creator_email %))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Creatorcontact ul) ": ")][:chunk (:creator_email %)]"\n"])
                                                                                                               (when-not (blank? (:criteria_url %))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Criteriaurl ul) ": ") ][:chunk.link (:criteria_url %)]"\n"])
                                                                                                               (when-not (blank? (:criteria_content %))
                                                                                                                 [:paragraph
                                                                                                                  [:chunk.chunk (str (t :badge/Criteria ul) ": ")][:paragraph (strip-html-tags (:criteria_content %))]"\n"])
                                                                                                               (when-not (blank? (:status b))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :user/Status ul) ": ")][:chunk  (str (:status b) "  ")]])
                                                                                                               (when-not (blank? (:verified_by_obf b))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Verifiedbyobf ul) ": ")][:chunk (str (:verified_by_obf b) "  ")]])
                                                                                                               (when-not (blank? (:issued_by_obf b))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Issuedbyobf ul) ": ")][:chunk (str (:issued_by_obf b))]"\n"])
                                                                                                               (when (not-empty (:tags b))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Tags ul) ": ")] [:chunk (join ", " (:tags b))]"\n"])
                                                                                                               (when-not (blank? (str (:issued_on b)))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Issuedon ul) ": ")][:chunk (str (date-from-unix-time (long (* 1000 (:issued_on b))) "date") "  ")]])
                                                                                                               (when-not (blank? (str (:expires_on b)))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Expireson ul) ": ")][:chunk (date-from-unix-time (long (* 1000 (:expires_on b))) "date")]"\n"])
                                                                                                               (when-not (blank? (str (:expires_on b)))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Issuerverified ul) ": ")] (if (== 0 (:issuer_verified b) ) [:chunk "false  "] [:chunk "true  "])])
                                                                                                               (when-not (blank? (str (:revoked b)))
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Revoked ul) ": ")] [:chunk (str (:revoked b) "  ")]])
                                                                                                               (when-not (blank? (:visibility b) )
                                                                                                                 [:phrase
                                                                                                                  [:chunk.chunk (str (t :badge/Badgevisibility ul) ": ")] [:chunk (:visibility b)]"\n"])

                                                                                                               (when-not (blank? (:obf_url b))
                                                                                                                 [:phrase
