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

Fortran: handle carriage return in non terminated strings (Origin: bugzilla #680408) #4816

Closed
doxygen opened this issue Jul 2, 2018 · 0 comments

Comments

@doxygen
Copy link
Owner

doxygen commented Jul 2, 2018

status VERIFIED severity normal in component general for ---
Reported in version 1.8.1.2-SVN on platform Other
Assigned to: Dimitri van Heesch

Original attachment names and IDs:

On 2012-07-22 18:47:42 +0000, albert wrote:

Compilers accept non terminated strings which are continued at the next line(especially with fixed format). result is that the string is concatenated. When looking at the strings in the outputted code, these strings are concatenated instead of split over the different lines.

Example:

  SUBROUTINE strange_txt
    CHARACTER(LEN=150) :: full_txt
    DATA full_txt
 1/'tst1
 1  txt2
 1  txt3'
 1  /
    WRITE(*,*) full_txt
  END SUBROUTINE

The resulting output is:

1 SUBROUTINE strange_txt
2 CHARACTER(LEN=150) :: full_txt
3 DATA full_txt
4 1/
5
6 'tst1 1 txt2 1 txt3'
7 1 /
8 WRITE(,) full_txt
9 END SUBROUTINE

instead of:

1 SUBROUTINE strange_txt
2 CHARACTER(LEN=150) :: full_txt
3 DATA full_txt
4 1/'tst1
5 1 txt2
6 1 txt3'
7 1 /
8 WRITE(,) full_txt
9 END SUBROUTINE

On 2012-07-22 18:50:32 +0000, albert wrote:

Created attachment 219443
PATCH allow new line / carriage return character in string

In case of a new line in a character string the string is printed correctly in the code.

On 2012-07-28 19:17:35 +0000, Dimitri van Heesch wrote:

Thanks, I'll include the patch in the next subversion update.

On 2012-08-11 13:18:15 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.2. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.

On 2012-08-12 12:30:15 +0000, albert wrote:

Works as described

@doxygen doxygen closed this as completed Jul 19, 2018
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

1 participant