Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 061cdf3

Browse files
author
Samuel Nitsche
committed
Moved fix of the issue to ut_metadata.get_package_spec_source as suggested.
Can't use translate here but the little slower performance of replace shouldn't be a problem
1 parent bba129d commit 061cdf3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

source/core/ut_annotations.pkb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ create or replace package body ut_annotations as
6868
l_comment := a_comments(l_comment_index);
6969

7070
-- strip everything except the annotation itself (spaces and others)
71-
l_annotation_str := regexp_substr(trim(translate(l_comment, chr(10)||chr(13), ' ')), c_annotation_pattern, 1, 1, modifier => 'i');
71+
l_annotation_str := regexp_substr(l_comment, c_annotation_pattern, 1, 1, modifier => 'i');
7272
if l_annotation_str is not null then
7373

7474
l_annotation_params.delete;

source/core/ut_metadata.pkb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ create or replace package body ut_metadata as
128128
-- we fetch the source explicitly as dbms_preprocessor is very sow on 12.1 and 12.2 when grabbing the sources.
129129
l_lines := sys.dbms_preprocessor.get_post_processed_source(l_lines);
130130
for i in 1..l_lines.count loop
131-
ut_utils.append_to_clob(l_source, l_lines(i));
131+
ut_utils.append_to_clob(l_source, replace(l_lines(i), chr(13)||chr(10), chr(10)));
132132
end loop;
133133
return l_source;
134134
end;

0 commit comments

Comments
 (0)