Email auto HREF / aliase IT.info.domain.ext

Support
maquejp
2012-04-24
2012-09-14
  • maquejp

    maquejp - 2012-04-24

    Hello,

    I have a strange behavior

    When using the method to add an email with a display <mydisplay at="" email@domain="">

    It looks like that the parser does not support two subdomain level

    Example:

        - contact <fn ln at fn.ln@domain.ext> if information required
        - contact <fn ln at fn.ln@info.domain.ext> if information required
        - contact fn.ln@info.domain.ext if information required
        - contact <IT at user1@IT.info.domain.ext> if information required
    

    When rendered the not working gives

    - A contact fn ln if information required
    - B contact fn ln if information required
    - C contact fn.ln@info.domain.ext if information required
    - D contact <IT at email target=”user1@IT.info” name=”user1@IT.info”.domain.ext> if information required
    

    A,B,C is working (href generated)

    D should use the same email as C (@info.domain.ext)

     
  • Greg Valure

    Greg Valure - 2012-04-24

    I figured it out. Open \Modules\NaturalDocs\Parser\Native.pm and search for
    this:

    # The next character can't be an alphanumeric, which should prevent .abcde from matching the two to
    # four character requirement, or a closing angle bracket.
    (?!  [a-z0-9>]  )
    

    Add a .? to the last line so it looks like this:

    (?!  \.?[a-z0-9>]  )
    

    Run Natural Docs with -r once to apply the changes everywhere. This will be
    fixed in the next version.

     
  • maquejp

    maquejp - 2012-04-25

    Thank you, it works

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks