Commit 68f7677
fix retrieving article description
What made me start this change were two logic bugs: chars_count being
checked against -1 (instead of None) and abstract_delimiter taking
higher priority than unlimited chars_count.
Apart from fixing the above, this commit reorders the if-elif chain
according to priority and, in the documentation, mentions how
abstract_chars_count and abstract_delimiter interact.
Breaking changes, as far as i'm aware:
- abstract_chars_count == -1 is again highest-priority,
- more effort (using abstract_delimiter) before non-compliance,
- chars_count is now an inclusive setting, increasing the article length
before it has to be shortened by one character.
None of these changes conflicts with the pre-existing documentation and
none should be noticeable in a well-configured environment.1 parent a08052a commit 68f7677
2 files changed
Lines changed: 26 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
247 | 246 | | |
248 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
256 | | - | |
| 257 | + | |
257 | 258 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
| 259 | + | |
263 | 260 | | |
264 | 261 | | |
265 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
477 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
478 | 483 | | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
| 484 | + | |
487 | 485 | | |
488 | 486 | | |
489 | 487 | | |
| |||
495 | 493 | | |
496 | 494 | | |
497 | 495 | | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
508 | 500 | | |
509 | 501 | | |
510 | 502 | | |
511 | 503 | | |
512 | 504 | | |
513 | | - | |
| 505 | + | |
514 | 506 | | |
515 | | - | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
516 | 513 | | |
517 | 514 | | |
518 | 515 | | |
| |||
0 commit comments