@@ -624,7 +624,7 @@ def _process_single_page_bedrock(
624624 # Generate and store text confidence data
625625 # For Bedrock, we use empty markdown table since LLM OCR doesn't provide real confidence scores
626626 text_confidence_data = {
627- "text" : "| Text | Confidence |\n |------| ------------|\n | *No confidence data available from LLM OCR* | N/A |"
627+ "text" : "| Text | Confidence |\n |: -----|: ------------|\n | *No confidence data available from LLM OCR* | N/A |"
628628 }
629629
630630 text_confidence_key = f"{ prefix } /pages/{ page_id } /textConfidence.json"
@@ -704,7 +704,7 @@ def _process_single_page_none(
704704
705705 # Generate minimal text confidence data (empty markdown table)
706706 text_confidence_data = {
707- "text" : "| Text | Confidence |\n |------| ------------|\n | *No OCR performed* | N/A |"
707+ "text" : "| Text | Confidence |\n |: -----|: ------------|\n | *No OCR performed* | N/A |"
708708 }
709709
710710 text_confidence_key = f"{ prefix } /pages/{ page_id } /textConfidence.json"
@@ -821,8 +821,8 @@ def _generate_text_confidence_data(
821821 Returns:
822822 Text confidence data as markdown table with ~80-90% token reduction
823823 """
824- # Start building the markdown table
825- markdown_lines = ["| Text | Confidence |" , "|------|- -----------|" ]
824+ # Start building the markdown table with explicit left alignment
825+ markdown_lines = ["| Text | Confidence |" , "|: -----|: -----------|" ]
826826
827827 blocks = raw_ocr_data .get ("Blocks" , [])
828828
@@ -1070,8 +1070,8 @@ def _process_converted_page(
10701070 content_type = "application/json" ,
10711071 )
10721072
1073- # Generate text confidence data as markdown table
1074- markdown_lines = ["| Text | Confidence |" , "|------|- -----------|" ]
1073+ # Generate text confidence data as markdown table with explicit left alignment
1074+ markdown_lines = ["| Text | Confidence |" , "|: -----|: -----------|" ]
10751075 for line in page_text .split ("\n " ):
10761076 if line .strip ():
10771077 # Escape pipe characters in text
0 commit comments