Skip to content

Fix missing spacing between average values in Day to Day report#8452

Merged
AndyLow91 merged 1 commit intonightscout:wip/next-releasefrom
petervanrijt:master
Mar 17, 2026
Merged

Fix missing spacing between average values in Day to Day report#8452
AndyLow91 merged 1 commit intonightscout:wip/next-releasefrom
petervanrijt:master

Conversation

@petervanrijt
Copy link

Summary

  • Added non-breaking spaces ( ) between Carbs average, Protein average, and Fat average values in the insulin distribution summary section
  • Previously these three values were displayed concatenated without any separation, making them difficult to read (e.g., "120gProtein average:45gFat average:30g")
  • Now displays correctly with proper spacing (e.g., "Carbs average: 144g Protein average: 0g Fat average: 0g")

Changes

  • lib/report_plugins/daytoday.js lines 118-120: Added   after Carbs and Protein average values

Test plan

  • Open Nightscout Reports
  • Select "Day to day" report
  • Enable "Insulin distribution" checkbox
  • Click SHOW to generate report
  • Verify that Carbs average, Protein average, and Fat average values at the bottom are properly spaced apart

Screenshot before

Before: Values are concatenated without spacing
before

Fix concatenated average values in Day to Day report summary. 

Add spacing between Carbs/Protein/Fat average values (lines 118-120).
@AndyLow91 AndyLow91 changed the base branch from master to wip/next-release March 17, 2026 08:33
@AndyLow91 AndyLow91 merged commit 02ec48c into nightscout:wip/next-release Mar 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants