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

Unexpected spacing in code block when using {@literal @} #61

Open
nenick opened this issue Jun 7, 2016 · 2 comments
Open

Unexpected spacing in code block when using {@literal @} #61

nenick opened this issue Jun 7, 2016 · 2 comments

Comments

@nenick
Copy link

nenick commented Jun 7, 2016

When I use {@literal @} to including @ symbols in code blocks then the line starts with one space to much.

Sample snippet in package-info.java:

/**
 * ```java
 * {@literal @}RunWith(AndroidJUnit4.class)
 * public class MyTest {
 *
 *   {@literal @}Rule
 *   public IntentsTestRule<MyActivity> activityTestRule = new IntentsTestRule<>(MyActivity.class);
 *
 * }
 * ```
 */

Expected result:

@RunWith(AndroidJUnit4.class)
public class MyTest {

  @Rule
  public IntentsTestRule<MyActivity> activityTestRule = new IntentsTestRule<>(MyActivity.class);

}

But result has one space to much at each @ symbol.

 @RunWith(AndroidJUnit4.class)
public class MyTest {

   @Rule
  public IntentsTestRule<MyActivity> activityTestRule = new IntentsTestRule<>(MyActivity.class);

}

For @Rule I can remove one space and then it looks correct but at @RunWith this workaround does not work.

@loddar
Copy link
Contributor

loddar commented Jun 22, 2016

This not specific to Pegdown-Doclet. You will got the same, if you use the standard doclet.

You can close this issue.

@loddar
Copy link
Contributor

loddar commented Jul 4, 2016

By the way: My pull request (see #64) will solve this issue.

Abnaxos added a commit that referenced this issue Jan 22, 2017
This should provide an acceptible solution for issues #65, #61, #23.
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