Give Recommendation lines their own bullet point in feedback report
Recommendation lines were rendered as continuation text within the same bullet as their Issue, appearing without a bullet marker. Now lines starting with "Recommendation:" are treated as new bullet groups so they each get their own bullet point in the list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c8f473d9b7
commit
a906b093d1
1 changed files with 3 additions and 0 deletions
|
|
@ -74,6 +74,9 @@ const formatFeedbackText = (text: string): React.ReactNode => {
|
|||
if (bulletGroups.length === 0) {
|
||||
// Haven't started bullets yet — it's intro text
|
||||
introLines.push(trimmed);
|
||||
} else if (/^\*{0,2}Recommendation:/.test(trimmed)) {
|
||||
// Recommendation line gets its own bullet
|
||||
bulletGroups.push([trimmed]);
|
||||
} else {
|
||||
// Continuation line within the current bullet
|
||||
bulletGroups[bulletGroups.length - 1].push(trimmed);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue