You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2021/02/08 08:21:43 UTC

[freemarker-docgen] branch master updated: Insert normaized path for [docgen:wd]

This is an automated email from the ASF dual-hosted git repository.

ddekany pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/freemarker-docgen.git


The following commit(s) were added to refs/heads/master by this push:
     new 0678d71  Insert normaized path for [docgen:wd]
0678d71 is described below

commit 0678d7163b843f2aa938647aa8c8781f55ca163c
Author: ddekany <dd...@apache.org>
AuthorDate: Mon Feb 8 09:21:31 2021 +0100

    Insert normaized path for [docgen:wd]
---
 .../docgen/core/PrintTextWithDocgenSubstitutionsDirective.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/PrintTextWithDocgenSubstitutionsDirective.java b/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/PrintTextWithDocgenSubstitutionsDirective.java
index 624f66c..2156bed 100644
--- a/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/PrintTextWithDocgenSubstitutionsDirective.java
+++ b/freemarker-docgen-core/src/main/java/org/freemarker/docgen/core/PrintTextWithDocgenSubstitutionsDirective.java
@@ -338,7 +338,7 @@ public class PrintTextWithDocgenSubstitutionsDirective implements TemplateDirect
                             if (wdSubst == null) {
                                 return cmdArg;
                             }
-                            return cmdArg.replace(DOCGEN_WD_TAG, wdSubst.toAbsolutePath().toString());
+                            return cmdArg.replace(DOCGEN_WD_TAG, wdSubst.toAbsolutePath().normalize().toString());
                         })
                         .collect(Collectors.toList());