Menu

#38 Line number are shifting regarding code source

1.2
open
nobody
None
2013-06-18
2013-06-17
No

Hello

I'm using version 1.1 and maven 3.0.2, java 1.7 and using apt doc file.
and there is something that is not working well when I use the line number feature on the lefts side (see attachment)

The result is the same whatever the perimeter I use the grep, regexp, or nothing.

it's quite strange because I didn't find any related topics on Internet.
I guess it was coming from my configuration but found nothing

Example of usage that providing the same shifting:

%{include|source=file.java|snippet=grep:foo\=+4}

%{include|source=file.java|snippet=grep:foo.start}

%{include|source=file.java|snippet=grep:foo.addListener}

%{include|source=file.java|snippet=grep:foo.login}

%{include|source=file.java|snippet=grep:foo+7}

%{include|source=file.java|snippet=grep:futur.get+1}

Continuing my investigation, I notice it works well with IE8 but not with firefox 21 :-(
Looking at the generated html page, it seems the table used to display the code sample is not homogeneous between the 2 main columns: The first one is for the gutter and the second one for the source lines.
See attachment, but the source lines column has a a div container that is not present in the gutter column.

Any help is welcome
Regards
Christophe

2 Attachments

Discussion

  • Christophe Lallement

     
  • Christophe Lallement

     
  • Christophe Lallement

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -8,7 +8,23 @@
     it's quite strange because I didn't find any related topics on internet.
     I guess it was coming from my configuration but found nothing
    
    -any help is welcome
    +Example of usage that providing the same shifting:
    +
    +~~~~~~~~
    +%{include|source=file.java|snippet=grep:foo\=+4}
    +
    +%{include|source=file.java|snippet=grep:foo.start}
    +
    +%{include|source=file.java|snippet=grep:foo.addListener}
    +
    +%{include|source=file.java|snippet=grep:foo.login}
    +
    +%{include|source=file.java|snippet=grep:foo+7}
    +
    +%{include|source=file.java|snippet=grep:futur.get+1}
    +~~~~~~~~
    +
    +Any help is welcome
     Regards
     Christophe 
    
     
  • Christophe Lallement

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,11 +1,11 @@
     Hello
    
    -I'm using version 1.1 and maven 3.0.2
    -and there is something that is not working well when I use the line nimber feature on the lefts side (see attachment)
    +I'm using version 1.1 and maven 3.0.2, java 1.7 and using apt doc file.
    +and there is something that is not working well when I use the line number feature on the lefts side (see attachment)
    
     The result is the same whatever the perimeter I use the grep, regexp, or nothing.
    
    -it's quite strange because I didn't find any related topics on internet.
    +it's quite strange because I didn't find any related topics on Internet.
     I guess it was coming from my configuration but found nothing
    
     Example of usage that providing the same shifting:
    
     
  • Christophe Lallement

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -24,6 +24,12 @@
     %{include|source=file.java|snippet=grep:futur.get+1}
     ~~~~~~~~
    
    +Continuing my investigation, I notice it works well with IE8 but not with firefox 21 :-(
    +Looking at the generated html page, it seems the table used to display the  code sample is not homogeneous between the 2 main columns: The first one is for the gutter and the second one for the source lines.
    +See attachment, but the source lines column has a a div container that is not present in the gutter column.
    +
    +
    +
     Any help is welcome
     Regards
     Christophe 
    
     

Anonymous
Anonymous

Add attachments
Cancel