Comments (3)
This is a feature since some people prefer to not indent deeply nested loops. So if a nested loop is not indented, fprettify does not impose indentation on the inner loop. However if you change your code to:
program main
integer :: i,j
do i=1,2
do j=1,3
print*,i,j,i*j
end do
end do
end program main
fprettify will assume that you want to indent the nested loop and therefore change the code to
program main
integer :: i, j
do i = 1, 2
do j = 1, 3
print *, i, j, i*j
end do
end do
end program main
from fprettify.
It would be nice if fprettify had an option to transform the original un-indented code to the last code you displayed, with each loop indented.
from fprettify.
to strictly indent nested loops, you can now invoke fprettify as:
fprettify.py --strict-indent
from fprettify.
Related Issues (20)
- Calling from python script as function HOT 2
- Run script HOT 3
- Warning output is written inside the script HOT 3
- feature request: prevent fprettify from separating <<<,>>>
- fprettify misunderstands Unary operator (`+` and `-`) in `WRITE` statement as Binary
- Add automatic breaking lines options
- Looking for collaborator(s) to maintain fprettify HOT 8
- Re-enable automatic tests HOT 1
- Add contributing guidelines HOT 1
- Update to pyproject.toml and setup.cfg
- Update CI workflow
- bug: exceptions thrown during CI HOT 1
- Update testing framework HOT 2
- Precompiler directives break indentation HOT 4
- Recursive flag does not work when input is a single file HOT 2
- Streamline and document testing mechanism
- Indenting line labels HOT 1
- config file example HOT 4
- Can comments starting in column 1 be indented? HOT 2
- Feature request: Support the letters q and Q in the expression of quadruple precision variables.
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 fprettify.