After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680408 - Fortran: handle carriage return in non terminated strings
Fortran: handle carriage return in non terminated strings
Status: VERIFIED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.1.2-SVN
Other Windows
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-07-22 18:47 UTC by albert
Modified: 2012-08-12 12:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PATCH allow new line / carriage return character in string (1.07 KB, patch)
2012-07-22 18:50 UTC, albert
none Details | Review

Description albert 2012-07-22 18:47:42 UTC
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
Comment 1 albert 2012-07-22 18:50:32 UTC
Created attachment 219443 [details] [review]
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.
Comment 2 Dimitri van Heesch 2012-07-28 19:17:35 UTC
Thanks, I'll include the patch in the next subversion update.
Comment 3 Dimitri van Heesch 2012-08-11 13:18:15 UTC
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.
Comment 4 albert 2012-08-12 12:30:15 UTC
Works as described