[BUG] @example : the generated code block of the doc gets unexpected spaces
See original GitHub issueOverview of the issue
the generated code block of the doc gets unexpected spaces, see the image below
Operating System, Node.js, npm, compodoc version(s)
win10 64, node6.10, npm 3.10
Angular configuration, a package.json
file in the root folder
yes
Compodoc installed globally or locally ?
locally
Motivation for or Use Case
the generated code block of the doc gets unexpected spaces
Reproduce the error
use the comment:
/**
* Shows all events on a given day. Example usage:
*
* ```html
* <mwl-calendar-day-view
* [viewDate]="viewDate"
* [events]="events">
* </mwl-calendar-day-view>
* ```
*/
Related issues
no
additional info
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
IndentationError: expected an indented block
IndentationError: expected an indented block. In documentation terminology, indentation means the space from margin to the begin of characters in a line.
Read more >What should I do with "Unexpected indent" in Python?
Python uses spacing at the start of the line to determine when code blocks start and end. Errors you can get are: Unexpected...
Read more >Code blocks: After editing the post, line breaks g...
Problem: After editing the post, line breaks will be automatically added before and after the code block. Those extra spaces aren't wanted.
Read more >Bug descriptions — spotbugs 4.7.3 documentation
This document lists the standard bug patterns reported by SpotBugs. Bad practice (BAD_PRACTICE)¶. Violations of recommended and essential coding practice.
Read more >ASP.NET Core Razor components - Microsoft Learn
In @code blocks, component state is specified and processed with C#: ... The code in the preceding example generates a compiler error when ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
what do you mean by root level? Are u saying that the
@example
can be only used outter of the class which means “the root level”?I have rolled back my code, and I can’t try it now, maybe I’ll try this sometime later.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.