mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
Merge branch 'master' into t226
This commit is contained in:
commit
4b102d9749
|
@ -350,21 +350,15 @@ CLASS lcl_html_helper IMPLEMENTATION.
|
||||||
ENDMETHOD. "_add_str
|
ENDMETHOD. "_add_str
|
||||||
|
|
||||||
METHOD _add_htm.
|
METHOD _add_htm.
|
||||||
DATA lv_indent_str TYPE string.
|
|
||||||
DATA lv_temp_str TYPE string.
|
|
||||||
|
|
||||||
lv_indent_str = repeat( val = ` ` occ = mv_indent * c_indent_size ).
|
DATA lt_strtab TYPE TABLE OF string.
|
||||||
lv_temp_str = io_html->mv_html.
|
DATA lv_str TYPE string.
|
||||||
|
|
||||||
IF me->mv_indent > 0.
|
SPLIT io_html->mv_html AT gc_newline INTO TABLE lt_strtab.
|
||||||
REPLACE ALL OCCURRENCES OF gc_newline IN lv_temp_str
|
LOOP AT lt_strtab INTO lv_str.
|
||||||
WITH gc_newline && lv_indent_str.
|
SHIFT lv_str LEFT DELETING LEADING space.
|
||||||
SHIFT lv_temp_str RIGHT DELETING TRAILING space.
|
_add_str( lv_str ).
|
||||||
SHIFT lv_temp_str LEFT DELETING LEADING space.
|
ENDLOOP.
|
||||||
ENDIF.
|
|
||||||
|
|
||||||
mv_html = mv_html && lv_indent_str && lv_temp_str.
|
|
||||||
mv_indent = mv_indent + io_html->mv_indent.
|
|
||||||
|
|
||||||
ENDMETHOD. "_add_htm
|
ENDMETHOD. "_add_htm
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user