HomePhabricator

Fix TOC anchor name collisions in edge cases

Authored by Jackmcbarn.

Description

Fix TOC anchor name collisions in edge cases

Currently, the parser adds a "_2" to the second of two identical headlines to
avoid collisions, but there's still a collision if another headline actually
ends in "_2". This change causes the new headline to also be checked for a
collision, and advances to "_3" or beyond if there is one.

Bug: T26787
Change-Id: Id0a55aa4c1917bac2f8f0d4863fcb85bd3dff1ca

Details

Committed
AnomieFeb 17 2015, 8:59 PM
Parents
rMW1f40716a4044: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
ChangeId
Id0a55aa4c1917bac2f8f0d4863fcb85bd3dff1ca