Skip to content

Commit c96e244

Browse files
committed
dos line terminators
1 parent 88389c9 commit c96e244

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

fpm/test/help_test/help_test.f90

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ function page(array) result (table)
226226
integer :: sz
227227
!!character(len=1),parameter :: nl=new_line('A')
228228
character(len=1),parameter :: nl=char(10)
229+
character(len=1),parameter :: cr=char(13)
229230
lines=0
230231
linelength=0
231232
length=0
@@ -248,19 +249,14 @@ function page(array) result (table)
248249
if(allocated(table))deallocate(table)
249250
!intel-bug!allocate(character(len=linelength) :: table(lines))
250251
allocate(character(len=132) :: table(lines))
251-
!!-----------------------------------------------------------
252252
table=' '
253-
!!possible bug in mingw. null filled instead of space padded?
254-
do i=1,lines
255-
table(i)=repeat(' ',len(table))
256-
enddo
257-
!!-----------------------------------------------------------
258253
linecount=1
259254
position=1
260255
do i=1,sz
261256
if(array(i).eq.nl)then
262257
linecount=linecount+1
263258
position=1
259+
elseif(array(i).eq.cr)then
264260
elseif(linelength.ne.0)then
265261
table(linecount)(position:position)=array(i)
266262
position=position+1

0 commit comments

Comments
 (0)