diff options
author | Jeffrey Armstrong <jeff@approximatrix.com> | 2020-05-10 12:28:02 -0400 |
---|---|---|
committer | Jeffrey Armstrong <jeff@approximatrix.com> | 2020-05-10 12:28:02 -0400 |
commit | 8de10aa414b9cce25003beb333f2a8b1bb858098 (patch) | |
tree | c6e977f9f544293ae69fceb5951bad94a0d2c9af /render.f90 | |
parent | 526dd78357047702904420270544486e092ec90c (diff) | |
download | LR-87-8de10aa414b9cce25003beb333f2a8b1bb858098.tar.gz LR-87-8de10aa414b9cce25003beb333f2a8b1bb858098.zip |
Fixed adjust link descriptions that contains tabs. Fixed minor makefile mixup.
Diffstat (limited to 'render.f90')
-rw-r--r-- | render.f90 | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -301,7 +301,7 @@ contains class(renderer)::r character(*)::text - integer::i_whitespace, d_length + integer::i_whitespace, d_length, i_start_display character(len=:), allocatable::url, display @@ -325,7 +325,13 @@ contains else d_length = len_trim(url) - i_whitespace + 1 allocate(character(len=d_length) :: display) - display = adjustl(url(i_whitespace:len_trim(url))) + + ! Adjustl doesn't handle tabs, so we need to do this manually... + i_start_display = i_whitespace + do while(any([" ", char(9)] == url(i_start_display:i_start_display))) + i_start_display = i_start_display + 1 + end do + display = url(i_start_display:len_trim(url)) url = url(1:(i_whitespace-1)) end if |