Skip to content

Commit

Permalink
Merge pull request #607 from andreyorst/patch-2
Browse files Browse the repository at this point in the history
fix #606
  • Loading branch information
kaushalmodi committed Mar 30, 2022
2 parents d04f41a + 0598b6d commit ab3e80d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ox-hugo.el
Expand Up @@ -4476,8 +4476,8 @@ subtree-number being exported.
(if all-subtrees
(progn
(setq org-hugo--subtree-count (1+ org-hugo--subtree-count))
(message (format "[ox-hugo] %d/ Exporting `%s' .." org-hugo--subtree-count title)))
(message (format "[ox-hugo] Exporting `%s' .." title)))
(message "[ox-hugo] %d/ Exporting `%s' .." org-hugo--subtree-count title))
(message "[ox-hugo] Exporting `%s' .." title))
;; Get the current subtree coordinates for
;; auto-calculation of menu item weight, page or
;; taxonomy weights ..
Expand Down
8 changes: 8 additions & 0 deletions test/site/content-org/all-posts.org
Expand Up @@ -634,6 +634,14 @@ Test the case where the title contains only the date, making it look
like a Hugo TOML date field.
#+end_description
{{{oxhugoissue(350)}}}
** Awesome title with % symbol
:PROPERTIES:
:EXPORT_FILE_NAME: post-title-percent-symbol
:EXPORT_DATE: 2017-07-24
:END:
Testing a post with a percent symbol in the title.
*** Sub-heading with % symbol
Sub-heading also exported correctly
* Excluded post :noexport:
:PROPERTIES:
:EXPORT_FILE_NAME: excluded-post
Expand Down
13 changes: 13 additions & 0 deletions test/site/content/posts/post-title-percent-symbol.md
@@ -0,0 +1,13 @@
+++
title = "Awesome title with % symbol"
date = 2017-07-24
tags = ["title"]
draft = false
+++

Testing a post with a percent symbol in the title.


## Sub-heading with % symbol {#sub-heading-with-symbol}

Sub-heading also exported correctly

0 comments on commit ab3e80d

Please sign in to comment.