fix: balcmds: fix empty html columns fix (#1933)
This commit is contained in:
		
							parent
							
								
									0c179c7e28
								
							
						
					
					
						commit
						fc858d1159
					
				| @ -580,7 +580,7 @@ multiBalanceReportHtmlHeadRow ropts (acct:cells) = | |||||||
|       | row_total_ ropts && average_ ropts = (ini2,  sndlst2, lst2) |       | row_total_ ropts && average_ ropts = (ini2,  sndlst2, lst2) | ||||||
|       | row_total_ ropts                   = (ini1,  lst1,    []) |       | row_total_ ropts                   = (ini1,  lst1,    []) | ||||||
|       |                     average_ ropts = (ini1,  [],      lst1) |       |                     average_ ropts = (ini1,  [],      lst1) | ||||||
|       | otherwise                          = (amts, [],      []) |       | otherwise                          = (cells, [],      []) | ||||||
|       where |       where | ||||||
|         n = length cells |         n = length cells | ||||||
|         (ini1,lst1)    = splitAt (n-1) cells |         (ini1,lst1)    = splitAt (n-1) cells | ||||||
| @ -604,7 +604,7 @@ multiBalanceReportHtmlBodyRow ropts (label:cells) = | |||||||
|       | row_total_ ropts && average_ ropts = (ini2,  sndlst2, lst2) |       | row_total_ ropts && average_ ropts = (ini2,  sndlst2, lst2) | ||||||
|       | row_total_ ropts                   = (ini1,  lst1,    []) |       | row_total_ ropts                   = (ini1,  lst1,    []) | ||||||
|       |                     average_ ropts = (ini1,  [],      lst1) |       |                     average_ ropts = (ini1,  [],      lst1) | ||||||
|       | otherwise                          = (amts, [],      []) |       | otherwise                          = (cells, [],      []) | ||||||
|       where |       where | ||||||
|         n = length cells |         n = length cells | ||||||
|         (ini1,lst1)    = splitAt (n-1) cells |         (ini1,lst1)    = splitAt (n-1) cells | ||||||
| @ -633,7 +633,7 @@ multiBalanceReportHtmlFootRow ropts (acct:cells) = | |||||||
|       | row_total_ ropts && average_ ropts = (ini2,  sndlst2, lst2) |       | row_total_ ropts && average_ ropts = (ini2,  sndlst2, lst2) | ||||||
|       | row_total_ ropts                   = (ini1,  lst1,    []) |       | row_total_ ropts                   = (ini1,  lst1,    []) | ||||||
|       |                     average_ ropts = (ini1,  [],      lst1) |       |                     average_ ropts = (ini1,  [],      lst1) | ||||||
|       | otherwise                          = (amts, [],      []) |       | otherwise                          = (cells, [],      []) | ||||||
|       where |       where | ||||||
|         n = length cells |         n = length cells | ||||||
|         (ini1,lst1)    = splitAt (n-1) cells |         (ini1,lst1)    = splitAt (n-1) cells | ||||||
|  | |||||||
| @ -195,7 +195,13 @@ account b | |||||||
| $ hledger -f - balance -NE --declared not:a | $ hledger -f - balance -NE --declared not:a | ||||||
|                    0  b |                    0  b | ||||||
| 
 | 
 | ||||||
| # 13. An empty totals column does not break HTML output (#1933). | # 13. An empty periodic report in HTML output does not break. | ||||||
| < | < | ||||||
| $ hledger -f- bal -YT -O html | $ hledger -f- bal -M -O html | ||||||
| > // | > // | ||||||
|  | 
 | ||||||
|  | # 14. An empty totals column in HTML output does not break (#1933). | ||||||
|  | < | ||||||
|  | $ hledger -f- bal -MT -O html | ||||||
|  | > // | ||||||
|  | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user