mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
#2631 Text Export to Eclipse : Generated text file has too many characters in line
This commit is contained in:
1 parent
8db8575d1e
commit
4060e7e5a5
3 files changed
+11
No files matched your search
+1
@@ -574,6 +574,7 @@ void RicWellPathExportCompletionDataFeatureImpl::printCompletionsToFile(
|
||||
|
||||
QTextStream stream(&exportFile);
|
||||
RifEclipseDataTableFormatter formatter(stream);
|
||||
formatter.setColumnSpacing(3);
|
||||
|
||||
for (const auto& gridCompletions : completionsPerGrid)
|
||||
{
|
||||
|
||||
@@ -36,6 +36,14 @@ RifEclipseDataTableFormatter::~RifEclipseDataTableFormatter()
|
||||
CVF_ASSERT(m_columns.empty());
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RifEclipseDataTableFormatter::setColumnSpacing(int spacing)
|
||||
{
|
||||
m_colSpacing = spacing;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -106,6 +106,8 @@ public:
|
||||
RifEclipseDataTableFormatter(QTextStream& out);
|
||||
virtual ~RifEclipseDataTableFormatter();
|
||||
|
||||
void setColumnSpacing(int spacing);
|
||||
|
||||
RifEclipseDataTableFormatter& keyword(const QString keyword);
|
||||
RifEclipseDataTableFormatter& header(std::vector<RifEclipseOutputTableColumn> tableHeader);
|
||||
RifEclipseDataTableFormatter& add(const QString str);
|
||||
|
||||
Reference in new issue
Block a user