Comments (2)
Apparently, groff recently stopped fixing the issue of broken man pages and reverted to original AT&T behaviour and this is the reason why this bug is only now being recognized:
https://lwn.net/Articles/947941/
from scrot.
The scrot manpage gets generated by txt2man. Manually adding \
in front of a hyphen in man/scrot.txt
does not work correctly. The resulting manpage gets severely messed up:
Applying some sed
post-processing in man/create-man.sh
to turn each -
into \-
works:
function create-man {
-txt2man -d "$T2M_DATE" -t $T2M_NAME -r $T2M_NAME-$T2M_VERSION -s $T2M_LEVEL -v "$T2M_DESC" $T2M_NAME.txt > $T2M_NAME.$T2M_LEVEL
+txt2man -d "$T2M_DATE" -t $T2M_NAME -r $T2M_NAME-$T2M_VERSION -s $T2M_LEVEL -v "$T2M_DESC" $T2M_NAME.txt | sed 's|-|\\-|g' > $T2M_NAME.$T2M_LEVEL
}
This will of course turn every -
into an ascii hyphen. But IMO that's fine. Unicode hyphen doesn't have any practical purpose in manpages anyways.
What I'm wondering now is whether this change should be made on our end or if this is something that should be done in txt2man
instead.
Ping: @eribertomota
from scrot.
Related Issues (20)
- XChangeProperty() errors aren't checked HOT 1
- assert() showing up in OS packages
- Document the minimum version for dependencies HOT 7
- Scrot needs patching to be packaged on Termux HOT 5
- The license in our README is wrong HOT 4
- Support shell completion
- `--enable-libbsd-feature-test` is unsound
- Add Termux to CI HOT 1
- scrot: received DestroyNotify event HOT 1
- Scrot doesn't capture VLC fullscreen HOT 3
- selection edge: detect selection repaint more reliably
- Add additional CI targets HOT 2
- screenshot of a 10bpc screen comes out 8bit HOT 3
- build failure on SmartOS and other Solaris-based systems due to `dprintf` HOT 2
- lack of information when scrot renames the output file because it already exists HOT 3
- image quality issues HOT 2
- Selection via keyboard
- --freeze by default, when using scrot -s HOT 3
- How to save screenshots to a specific directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrot.