Summary: | <switchinline select="sys"> mechanism misbehaves when embedded | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Ming Hua <ming.v.hua> |
Component: | Documentation | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | ilmari.lauhakangas, olivier.hallot |
Priority: | medium | ||
Version: | 7.2.0.3 rc | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | target:24.2.0 | ||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 97629 |
Description
Ming Hua
2021-10-01 17:24:39 UTC
This bug requires changes in + help3xsl/help2.js : // Find spans that need the switch treatment and give it to them var spans = document.querySelectorAll("[class^=switch]"); (...) function setApplSpan(spanZ) function setSystemSpan(spanZ) + help3xsl/online_transform.xsl : switch /switchinline case default Note that we want to get rid of the switches completely, but it is not trivial to fix this issue I need a javascript code that handles the current pseudo code For this use case System is WIN. Note that second switch must return the DEFAULT case. switch System { case MAC: mac help stuff break; case WIN: win help stuff switch System { case MAC: mac help2 stuff break; case DEFAULT: DEFAULT help2 stuff break; default: undefined system stuff } break; case UNIX: unix help stuff break; case DEFAULT: DEFAULT help stuff break; default: undefined system stuff } Olivier Hallot committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/help/commit/886cebba80267127e47de6f5dad57745cfe54752 tdf#144859 - fix switch javascript logic. |