Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publishToConfluence - a source code block containing template parameters has formatting problems #1349

Closed
stehlih opened this issue Jan 22, 2024 · 2 comments

Comments

@stehlih
Copy link
Contributor

stehlih commented Jan 22, 2024

docToolchain V3.2.0 tested with Confluence 8.6.2

Source code blocks containing template parameters are not correct transfered to Confluence.

The following AsciiDoc code block is formatted correct with HTML or PDF output.

[source, csharp]
----
public class ComplexModel : IModel
{
    private readonly ILoggerFactory loggerFactory;
    private readonly ILogger<ComplexModel> logger;

    ComplexModel( ILoggerFactory loggerFactory, ... )
    {
        this.loggerFactory = loggerFactory;
        logger = loggerFactory.CreateLogger<ComplexModel>();
        ...
    }
}
----

On Confluence the template parameters are all lowercase and at the end we can see some html statements.

public class ComplexModel : IModel
{
    private readonly ILoggerFactory loggerFactory;
    private readonly ILogger<complexmodel> logger;
 
    ComplexModel( ILoggerFactory loggerFactory, ... )
    {
        this.loggerFactory = loggerFactory;
        logger = loggerFactory.CreateLogger<complexmodel>();
        ...
    }
}</complexmodel></complexmodel>

ConfluenceOutput

@stehlih stehlih changed the title exportConfluence - a source code block containing template parameters has formatting problems publishToConfluence - a source code block containing template parameters has formatting problems Jan 22, 2024
@PacoVK
Copy link
Collaborator

PacoVK commented Feb 1, 2024

Thanks for reporting, i did take a look and confirmed you found a bug. Thats awesome and i will provide a fix soon :)

@stehlih
Copy link
Contributor Author

stehlih commented Feb 28, 2024

It works now with V3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants