question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] @example : the generated code block of the doc gets unexpected spaces

See original GitHub issue
Overview 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:closed
  • Created 6 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rdkmastercommented, Jul 30, 2017

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.

0reactions
lock[bot]commented, Oct 1, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found