return d
def _code_into_parts(self, n_parts: int) -> tuple[str, ...]:
- maxsplit = n_parts + 1
+ maxsplit = n_parts - 1
parts = self.code.split(maxsplit=maxsplit)
- return tuple((parts[idx] if len(parts) > idx else '')
- for idx in range(maxsplit))
+ return tuple((parts[idx].rstrip() if len(parts) > idx else '')
+ for idx in range(n_parts))
@property
@abstractmethod
</td>
</tr>
<tr><td> </td></tr>
- <tr><td>2001-01-02 test </td></tr>
+ <tr><td>2001-01-02 test test </td></tr>
<tr><td> bar -10 € ; bar </td></tr>
<tr><td> baz 10 € </td></tr>
<tr></tr><!-- keep the background-color alternation in proper order -->