Comments (6)
The problem here is that we did not wanted to use javascript to do this, so css was used.
The main issue happens when it is done by id, if you have two diffs in the same page it will have problems since you cannot have two ids.
Maybe we should use class, still is not ideal.
from diff2html.
@sreich In #58 I added the diff2html-ui and with it the ability to set if the files are expanded or not by default when running the JS on the page. Is that a solution for your problem?
from diff2html.
hey, nice to see progress on this and the other issues i reported!
well, thing is, for it to be useful for me i'd need that to also be exposed via diff2html-cli, as that's all i (can) use. could you be a dear and add a switch for that? :-)
from diff2html.
@sreich just released a fix for the cli and also some more customization for the summary.
If you install version 1.4.4 you should have:
diff2html --su open
diff2html --su closed
diff2html --su hidden
Is it ok?
from diff2html.
I also added two hash tags to be able to override this with the url:
#files-summary-show
#files-summary-hide
this will also override any previous decision.
This is available in version 1.4.5.
@sreich can I close this or do you have any other suggestion?
from diff2html.
yes this works perfectly and you covered all bases -- nice work! 👍
from diff2html.
Related Issues (20)
- side-by-side way too wide for wide diffs HOT 3
- How to set tag status HOT 2
- side-by-side diff is broken in Firefox HOT 2
- Output of diff not preserving escaped HTML characters HOT 3
- Can't run diff2html-cli on linux docker container HOT 2
- Make templates more flexible HOT 4
- How to remove the serial number of blank lines HOT 3
- Blank context lines are ignored by diff parser HOT 1
- Vertical align mismatch between inserted/deleted text and matching
- Code breaking when there is no change in a line HOT 3
- Is it possible to generate single html report for multiple git repos? HOT 1
- Unknown argument: diff.txt HOT 1
- 12341
- Suggest new option to Diff2Html library HOT 1
- If the diffString contains special symbols, the page will report an error HOT 1
- Diff2html fails with Error: Cannot find module 'tslib'
- Slim version doesn't fallback to 'plaintext' on unsupported file type HOT 4
- File list links are not working in Angular integration for diff2html-ui HOT 2
- the `multiline comment` syntax can not highlight correctly HOT 1
- CSS not working inside shadow DOM
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 diff2html.