-
-
Couldn't load subscription status.
- Fork 273
Description
I used the generate-doc command and recieved an Cannot write newline characters in a table cell. error when the index files get generated.
roslynator version: 0.9.0.0
the command:
roslynator generate-doc .\example.sln -o doc/ref --host docusaurus --heading "example" -v diag
It compiles the contained projects and starts to generate the documentation before emitting the following error. Using the host docusaurus or github manages to generate several index.md files before the error occures. Using the host sphinx failes before saving the first index.md.
Compiled solution 'C:\Users\user\source\example\example.sln' (in 290,4 s)
Relative path from root file to output directory is ''.
Generate documentation root to 'C:\Users\user\source\example\doc\ref\index.md'.
Documentation root successfully generated to 'C:\Users\user\source\example\doc\ref\index.md'.
Generate documentation to 'doc/ref'
(...)
System.AggregateException: One or more errors occurred. (Cannot write newline characters in a table cell.)
---> System.InvalidOperationException: Cannot write newline characters in a table cell.
at DotMarkdown.MarkdownBaseWriter.<OnBeforeWriteLine>g__ThrowOnNewLineInTableCell|101_0()
at DotMarkdown.MarkdownBaseWriter.OnBeforeWriteLine()
at DotMarkdown.MarkdownBaseWriter.WriteLine()
at Roslynator.Documentation.XmlExtensions.WriteContentTo(XElement element, DocumentationWriter writer, Boolean inlineOnly) in /_/src/Documentation/Extensions/XmlExtensions.cs:line 101
at Roslynator.Documentation.DocumentationWriter.WriteTable(IEnumerable`1 symbols, String heading, Int32 headingLevel, String header1, String header2, SymbolDisplayFormat format, SymbolDisplayAdditionalMemberOptions additionalOptions, Boolean addLink, Boolean canIncludeInterfaceImplementation, INamedTypeSymbol containingType) in /_/src/Documentation/DocumentationWriter.cs:line 1470
at Roslynator.Documentation.DocumentationGenerator.<>c__DisplayClass39_0.<GenerateNamespace>g__WriteTypes|1(IEnumerable`1 types, TypeKind typeKind, <>c__DisplayClass39_1&)
at Roslynator.Documentation.DocumentationGenerator.GenerateNamespace(INamespaceSymbol namespaceSymbol, IEnumerable`1 types) in /_/src/Documentation/DocumentationGenerator.cs:line 399
at Roslynator.Documentation.DocumentationGenerator.Generate(CancellationToken cancellationToken)+MoveNext() in /_/src/Documentation/DocumentationGenerator.cs:line 171
at Roslynator.CommandLine.GenerateDocCommand.ExecuteAsync(ProjectOrSolution projectOrSolution, CancellationToken cancellationToken) in /_/src/CommandLine/Commands/GenerateDocCommand.cs:line 234
at Roslynator.CommandLine.MSBuildWorkspaceCommand`1.ExecuteAsync(String path, MSBuildWorkspace workspace, CancellationToken cancellationToken) in /_/src/CommandLine/Commands/MSBuildWorkspaceCommand.cs:line 164
at Roslynator.CommandLine.MSBuildWorkspaceCommand`1.ExecuteAsync(IEnumerable`1 paths, String msbuildPath, IEnumerable`1 properties) in /_/src/CommandLine/Commands/MSBuildWorkspaceCommand.cs:line 89
at Roslynator.CommandLine.Program.GenerateDocAsync(GenerateDocCommandLineOptions options) in /_/src/CommandLine/Program.cs:line 738
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Roslynator.CommandLine.Program.<>c.<Main>b__0_3(MSBuildCommandLineOptions options) in /_/src/CommandLine/Program.cs:line 181
at CommandLine.ParserResultExtensions.MapResult[T1,T2,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 parsedFunc2, Func`2 notParsedFunc)
at Roslynator.CommandLine.Program.Main(String[] args) in /_/src/CommandLine/Program.cs:line 169