Skip to content

Commit efb0f7f

Browse files
Copilotowndev
andcommitted
Fix HTML content preservation in citations - remove newline replacement
Co-authored-by: owndev <69784886+owndev@users.noreply.github.com>
1 parent e5d087d commit efb0f7f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pipelines/azure/azure_ai_foundry.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,8 +869,6 @@ def _format_citation_section(
869869
try:
870870
# Clean content for display
871871
clean_content = str(content_text).strip()
872-
# Replace problematic characters for HTML display
873-
clean_content = clean_content.replace("\n", " ").replace("\r", " ")
874872
if for_streaming:
875873
# Additional escaping for streaming
876874
clean_content = clean_content.replace("\\", "\\\\").replace(

0 commit comments

Comments
 (0)